package com.younion.vo;

import com.younion.common.base.BaseVO;
import java.util.Date;


/**
 * 
 *  
 *
 * @property label="优惠券实例" lower="favourable" upper="FAVOURABLE" instance="favourable" table="t_Favourable"
 *
 * Copyright (c) 2009 Excellence Network Co.,LTD All right reserved.
 *
 */
public class FavourableVO extends BaseVO implements Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

	/**
	 * 主键id
	 * @label 主键id
	 * @code id
	 * @type NUMERIC
	 * @javaType Integer
	 * @pk instance="Id"
	 * @required true
	 * @index 1
	 * @oddeven 0
	 */
	private Integer id;

	/**
	 * 优惠券实体
	 * @label 优惠券实体
	 * @code favourableEntity
	 * @type FavourableEntityVO
	 * @javaType String
	 * @show 
	 * @length 15
	 * @index 2
	 * @oddeven 1
	 * @faint 
	 */
	private FavourableEntityVO favourableEntity;

	/**
	 * 会员卡实例
	 * @label 会员卡实例
	 * @code memberCard
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @length 15
	 * @index 3
	 * @oddeven 2
	 * @isAfterTwo 2
	 * @faint 
	 */
	private Integer memberCard ;

	/**
	 * 获得时间
	 * @label 获得时间
	 * @code gain_time
	 * @type TIMESTAMP
	 * @javaType java.util.Date
	 * @show 
	 * @index 4
	 * @oddeven 1
	 * @isAfterTwo 1
	 */
	private Date gainTime;

	/**
	 * 获得方法
	 * @label 获得方法
	 * @code gain_manner
	 * @type NUMERIC
	 * @javaType Integer
	 * @show 
	 * @index 5
	 * @oddeven 2
	 * @isAfterTwo 2
	 * 0:商家发放，1：自主获得，2：其他
	 */
	private Integer gainManner;

	/**
	 * 状态
	 * @label 状态
	 * @code state
	 * @type NUMERIC
	 * @javaType Integer
	 * @show 
	 * @index 6
	 * @oddeven 1
	 * @isAfterTwo 1
	 * 0:可使用,1:已使用,2:已过期,3:已作废
	 */
	private Integer state;

	/**
	 * 使用时间
	 * @label  使用时间
	 * @code use_time
	 * @type TIMESTAMP
	 * @javaType java.util.Date
	 * @show 
	 * @index 7
	 * @oddeven 2
	 * @isAfterTwo 2
	 */
	private Date useTime;

	/**
	 * 编码
	 * @label 编码
	 * @code code
	 * @type VARCHAR
	 * @javaType String
	 * @show 
	 * @isLast 
	 * @length 50
	 * @index 8
	 * @oddeven 1
	 * @isAfterTwo 1
	 * @faint 
	 */
	private String code;

	/**
	 * 所属商家Id
	 */
	private Integer customerId;
	/**
	 * 用户Id
	 */
	private Integer userId;
	
	private String customerName;
	private Date gtgainTime;
	private Date ltgainTime;
	private Date gtuseTime;
	private Date ltuseTime;
	
	private String userName;
	private String memberCardCode;
	private Integer favEntId;
	private Integer favourableEntityId;
	private String favourableEntityName;
	
	/**
	 * 
	 */
	private API_FavourableEntityVO api_favourableEntity;
	public FavourableVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the favourableCode
	 */ 
	public FavourableEntityVO getFavourableEntity() {
		return favourableEntity;
	}

	/** 
	 * @param favourableCode the favourableCode to set 
	 */ 
	public void setFavourableEntity(FavourableEntityVO favourableEntity) {
		this.favourableEntity = favourableEntity;
	}

	/** 
	 * @return the memberCard
	 */ 
	public Integer getMemberCard() {
		return memberCard;
	}
	
	/** 
	 * @param memberCard the memberCard to set 
	 */
	public void setMemberCard(Integer memberCard) {
		this.memberCard = memberCard;
	}

	/** 
	 * @return the gainTime
	 */ 
	public Date getGainTime() {
		return gainTime;
	}

	/** 
	 * @param gainTime the gainTime to set 
	 */ 
	public void setGainTime(Date gainTime) {
		this.gainTime = gainTime;
	}

	/** 
	 * @return the gainManner
	 */ 
	public Integer getGainManner() {
		return gainManner;
	}

	/** 
	 * @param gainManner the gainManner to set 
	 */ 
	public void setGainManner(Integer gainManner) {
		this.gainManner = gainManner;
	}

	/** 
	 * @return the state
	 */ 
	public Integer getState() {
		return state;
	}

	/** 
	 * @param state the state to set 
	 */ 
	public void setState(Integer state) {
		this.state = state;
	}

	/** 
	 * @return the useTime
	 */ 
	public Date getUseTime() {
		return useTime;
	}

	/** 
	 * @param useTime the useTime to set 
	 */ 
	public void setUseTime(Date useTime) {
		this.useTime = useTime;
	}

	/** 
	 * @return the code
	 */ 
	public String getCode() {
		return code;
	}

	/** 
	 * @param code the code to set 
	 */ 
	public void setCode(String code) {
		this.code = code;
	}
	/** 
	 * @return the customerId
	 */
	public Integer getCustomerId() {
		return customerId;
	}
	/** 
	 * @param customerId the customerId to set 
	 */ 
	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public API_FavourableEntityVO getApi_favourableEntity() {
		return api_favourableEntity;
	}

	public void setApi_favourableEntity(API_FavourableEntityVO api_favourableEntity) {
		this.api_favourableEntity = api_favourableEntity;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public Date getGtgainTime() {
		return gtgainTime;
	}

	public void setGtgainTime(Date gtgainTime) {
		this.gtgainTime = gtgainTime;
	}

	public Date getLtgainTime() {
		return ltgainTime;
	}

	public void setLtgainTime(Date ltgainTime) {
		this.ltgainTime = ltgainTime;
	}

	public Date getGtuseTime() {
		return gtuseTime;
	}

	public void setGtuseTime(Date gtuseTime) {
		this.gtuseTime = gtuseTime;
	}

	public Date getLtuseTime() {
		return ltuseTime;
	}

	public void setLtuseTime(Date ltuseTime) {
		this.ltuseTime = ltuseTime;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMemberCardCode() {
		return memberCardCode;
	}

	public void setMemberCardCode(String memberCardCode) {
		this.memberCardCode = memberCardCode;
	}

	public Integer getFavEntId() {
		return favEntId;
	}

	public void setFavEntId(Integer favEntId) {
		this.favEntId = favEntId;
	}

	public String getFavourableEntityName() {
		return favourableEntityName;
	}

	public void setFavourableEntityName(String favourableEntityName) {
		this.favourableEntityName = favourableEntityName;
	}

	public Integer getFavourableEntityId() {
		return favourableEntityId;
	}

	public void setFavourableEntityId(Integer favourableEntityId) {
		this.favourableEntityId = favourableEntityId;
	}
	
	
}
